﻿using System.ServiceModel;
using System.ServiceModel.Activation;
using System.Collections.Generic;
using WordNet.AG;

namespace VocabCards.Web
{
    [ServiceContract(Namespace = "")]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class Words
    {

        [OperationContract]
        public WordProperties[] DefineWords(IEnumerable<string> words)
        {
            // Add your operation implementation here

            var proxy = new WordNetProxy();

            var ret = proxy.Define(words);

            return ret.ToArray();
        }

        // Add more operations here and mark them with [OperationContract]
    }
}
